package com.itheima.sh.config;

import feign.Logger;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration //springboot会默认加载这个类下面的注解就会生效
@EnableFeignClients(basePackages ="com.itheima.sh.clients" ) // 开启Feign功能
public class FeignConfig {
    @Bean
    Logger.Level feignLoggerLevel(){
       //配置日志打印内容
        return Logger.Level.FULL; //四种配置 NONE < BASIC < HEADERS < FULL
    }
}